﻿<UserControl x:Class="SLExtensions.Showcase.PageGridPageLayout"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
xmlns:slec="clr-namespace:SLExtensions.Controls;assembly=SLExtensions.Controls"
    >
    <Grid x:Name="LayoutRoot" Background="White">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition />
        </Grid.RowDefinitions>
        <TextBlock Text="Grid page layout. Arrange children based on a given number of column and row per page"/>
        <Border BorderBrush="Orange" BorderThickness="1" Width="230" Height="230" Grid.Row="1">
            <ListBox ItemsSource="abscdefghijklmnopqrstuvwxyz">
                <ListBox.ItemsPanel>
                    <ItemsPanelTemplate>
                    <slec:GridPageLayout ColumnCount="3" RowCount="3" PageHeight="200" PageWidth="200" PageOrientation="Vertical" Orientation="Horizontal">

                    </slec:GridPageLayout>
                    </ItemsPanelTemplate>
                </ListBox.ItemsPanel>
                <ListBox.ItemTemplate>
                    <DataTemplate>
                        <TextBlock Text="{Binding}" />
                    </DataTemplate>
                </ListBox.ItemTemplate>
            </ListBox>
            
        </Border>
    </Grid>
</UserControl>
